package day04;

public class test17 {
    public static void main(String[] args) {
        //for循环：输出5次"行动是成功的阶梯"、输出9的乘法表(1到9、1/3/5/7/9、9到1)、累加1到100的和
        for (int i = 1; i < 6; i++) {
            System.out.println("success");
        }

        for (int i = 1; i < 10; i += 2) {
            System.out.println(i + "*9=" + i * 9);
        }

        // 1 1
        // 1 2 2 2
        // 1 3 2 3 3 3
        for (int j = 1; j < 10; j++) {
            for (int i = 1; i <= j; i++) {
                System.out.print(i + "*" + j + "=" + i * j + "\t");
            }
            System.out.println();
        }

        int sum = 0;
        for (int i = 1; i < 101; i++) {
            sum += i;
        }
        System.out.println(sum);

    }
}
